Stable Diffusion WebUI Critical CUDA Out of Memory Detection Rule #134
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🎯 Overview
This PR introduces a comprehensive detection rule for Stable Diffusion WebUI CUDA Out of Memory failures - addressing one of the most critical and widespread issues affecting AUTOMATIC1111 Stable Diffusion deployments globally. The rule identifies CUDA memory exhaustion leading to complete WebUI service failure requiring manual intervention.
CRE Playground Links
CRE-2025-0130 Playground: Test Rule
🚨 Problem Statement
High-Severity Issue: Stable Diffusion WebUI CUDA failures cause:
Why This Matters: Stable Diffusion CUDA failures are particularly dangerous because:
Rule Performance
📊 Stable Diffusion Issues Covered
torch.cuda.OutOfMemoryError: CUDA out of memory
🧪 Testing & Validation
CRE Rule Testing
Test Results:

🎬 Demo Environment
Repo link (private invitation already send) https://github.com/MAVRICK-1/cuda-oom
Screencast.from.2025-08-27.13-19-35.mp4
./start-demo.sh cat logs/roop-cuda-oom.log | preq -r stable-diffusion-cuda-oom.yaml -d
Fixes #130
/claim #130